<?php
require_once('../class/connect.php');
require_once('../class/db_sql.php');
require_once("../class/connect.php");
require_once("../class/db_sql.php");
require_once("../class/functions.php");
require_once("../class/user.php");
require_once("../class/say.php");
$link=db_connect();
$empire=new mysqlquery();
$act_id=$_REQUEST[id];
$db='phome_jat_pic';

$list=DbTouchAll($db,array('app_type'=>ACT_ID_ROOT,'app_id'=>$act_id),"*",'ORDER  BY time DESC');
?>
<div class='upload_more'><a href='javascript:alert(0);'>上传更多照片</a></div>
<?php 
if($list){
	echo "<ul class='list-act-pic-ul'>";
foreach($list as $k=>$vl){
?>
<li class='act-list-pic-item' style='float:left;padding:5px;clear:none;'>
	<div class='act-pic'>
		<a href="javascript:show_one_pic('<?=$vl['id']?>')"><img src='<?=getImgSizeUrl($public_r['newsurl'].$vl['url'],'136','136')?>' width='136' title='<?=$vl['title']?>'/></a>
	</div>
	<div class='act-pic-title'><?=$vl['title']?></div>
	<div class='act-pic-opt'><?php if($vl[uid]==$lguserid){?><a href='javascript:editActPic("<?=$vl['id']?>");'>编辑</a><a href='javascript:deleteActPic("<?=$vl['id']?>");'>删除</a><?php }else{?><a>&nbsp;</a><?php }?></div>
</li>
<?php }
echo '</ul>
<div class="clear"></div>';
}else{
?>
<div class='no-data'>还没有人上传照片</div>
<?php }?>